import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import "./utils/rem"
import './styles/icon.css'
import 'babel-polyfill'
import './styles/common.css'
import './utils/element'
import './utils/axios'
import TreeTable from 'vue-table-with-tree-grid'
Vue.component('tree-table', TreeTable)
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
// 第一种axios封装：失败
// import {request} from './ceshiAxios/axios'
// request(config:'http://127.0.0.1:8888/api/private/v1/menus',success:res=>{
//      console.log(res, '')
// },fail:err=>{
//   console.log(err, '')
// })
// 添加请求拦截器
//第二种axios封装
import {request02} from './ceshiAxios/axios'
request02({
  url:'munus',
  success:res=>{
    console.log(res, '')
  }
})
